<%@i = 0%>
<% if @size == 0%>
	<p>No artwork matched your search criteria.  Try another search.</p>
<% else%>
<div class="list">
	<div class="list_action">
		<p>
			Showings results <%=@offset+1%> - <%=@end%> of <%=@size%> total results
		</p>
		<%if @show_any%>
		<div class="page_box">
			<p>
				<% if @show_prev%>
					<a href="/search?q=<%=h @query%>&page=<%=@page - 1%>">prev</a>
					| 
				<% end%>
				
				<% if @page1 == @page%>
					<strong><%=@page%></strong>
				<% elsif @page1 != -1%>
					<a href="/search?q=<%=h @query%>&page=<%=@page1%>"><%=@page1%></a>
				<% end%>
				
				<% if @page2 == @page%>
					<strong><%=@page%></strong>
				<% elsif @page2 != -1%>
					<a href="/search?q=<%=h @query%>&page=<%=@page2%>"><%=@page2%></a>
				<% end%>
					
				<% if @page3 == @page%>
					<strong><%=@page%></strong>
				<% elsif @page3 != -1%>
					<a href="/search?q=<%=h @query%>&page=<%=@page3%>"><%=@page3%></a>
				<% end%>
				
				<% if @show_next%>
					| 
					<a href="/search?q=<%=h @query%>&page=<%=@page + 1%>">next</a>
				<% end%>
			</p>
		</div>
		<% end%>
	</div>
  
	<div id="artwork_summaries">
		<% for r in @results %>
      <%= render :partial => "artworks/show_summary", :locals => {:artwork => r, :curr_flicker_id => @i} %>
	  <%@i += 1%>
		<% end %>
	</div>
  
	<div class="list_action">
		<%if @show_any%>
		<div class="page_box">
			<p>
				<% if @show_prev%>
					<a href="/search?q=<%=h @query%>&page=<%=@page - 1%>">prev</a>
					| 
				<% end%>
				
				<% if @page1 == @page%>
					<strong><%=@page%></strong>
				<% elsif @page1 != -1%>
					<a href="/search?q=<%=h @query%>&page=<%=@page1%>"><%=@page1%></a>
				<% end%>
				
				<% if @page2 == @page%>
					<strong><%=@page%></strong>
				<% elsif @page2 != -1%>
					<a href="/search?q=<%=h @query%>&page=<%=@page2%>"><%=@page2%></a>
				<% end%>
					
				<% if @page3 == @page%>
					<strong><%=@page%></strong>
				<% elsif @page3 != -1%>
					<a href="/search?q=<%=h @query%>&page=<%=@page3%>"><%=@page3%></a>
				<% end%>
				
				<% if @show_next%>
					| 
					<a href="/search?q=<%=h @query%>&page=<%=@page + 1%>">next</a>
				<% end%>
			</p>
		</div>
		<%end%>
	</div>
</div>
<% end%>